package kandl.automation.reporting.testrail.model;

import kandl.automation.Browser;

import org.codehaus.jackson.annotate.JsonIgnoreProperties;
import org.codehaus.jackson.annotate.JsonProperty;

@JsonIgnoreProperties(ignoreUnknown = true)
public class TestRailRun {

    private String id;

    private String suiteId;

    private String config;

    public TestRailRun() {
    }

    public TestRailRun(String id, String suiteId, Browser browser) {
        this.id = id;
        this.suiteId = suiteId;
        this.config = browser.getName();
    }

    public String getId() {
        return id;
    }

    @JsonProperty("suite_id")
    public String getSuiteId() {
        return suiteId;
    }

    public String getConfig() {
        return config;
    }
}
